import matplotlib.pyplot as plt

# 数据
x = list(range(1, 17))  # x轴数据 1-15
y = [0.09840984098409841, 0.1039103910391039, 0.2002200220022002,
     0.4006400640064006, 0.671067106710671, 0.785078507850785,
     0.8711871187118712, 0.9377937793779378, 0.9690969096909691,
     0.9825982598259826, 0.9895989598959896, 0.9943994399439944,
     0.9958995899589959, 0.9975997599759976, 0.9975997599759976,
     0.9977997799779978]

# 创建图形
plt.figure(figsize=(10, 6))  # 设置图形大小

# 绘制折线图
plt.plot(x, y, marker='o', linestyle='-', color='b', linewidth=2, markersize=8)

# 添加标题和标签
plt.title('Line Chart of Given Data', fontsize=14)
plt.xlabel('X Values', fontsize=12)
plt.ylabel('Y Values', fontsize=12)

# 设置x轴刻度为整数
plt.xticks(x)

# 添加网格
plt.grid(True, linestyle='--', alpha=0.6)

# 显示图形
plt.show()